package youRobot;

public class Game {
	private final int players;
	private final int levels;
	private int current_level;
	private WorldMap map;
	
	private static int DEFAULT_PLAYERS = 1;
	private final int MAX_PLAYERS = 2;
	
	private final static int DEFAULT_LEVELS = 1;
	private final int MAX_LEVELS = 10;
	
	public Game(final int players, final int levels){
		if ( players > MAX_PLAYERS ){
			throw new IllegalArgumentException("Sorry, max number of players is "+MAX_PLAYERS);
		}
		if ( levels > MAX_LEVELS ){
			throw new IllegalArgumentException("Sorry, max number of levels is "+MAX_LEVELS);
		}
		this.players = players;
		this.levels = levels;
		this.current_level = 1;
		map = new WorldMap();
	}
	
	public Game(){
		this(DEFAULT_PLAYERS,DEFAULT_LEVELS);
	}
	
}
